/**
 * Created by Jay on 2016/6/30.
 */
function edit_platform_role(){
    /**
     * Created by Jay on 2016/6/16.
     */
        if(check_reload==1){
            parent.location.reload();
            check_reload=2;
        }
        $("body").off();
        //mccmsa.hashChange();
        var ue = UE.getEditor('editor_r');
        mccmsa.ajax({
            url: "platformNormController/checkPlatformNorm",
            method: "get",
            success: function (data){
                ue.ready(function() {
                    ue.setContent(data.result);
                });
            }
        })
        //parent.location.reload();
        $(".save").on("click",function(){
            var data=UE.getEditor('editor_r').getContent();
            if(data==""){
                layer.alert("输入为空");
                return;
            }
            mccmsa.ajax({
                url: "platformNormController/updatePlatformNorm",
                method: "POST",
                data: {normContent:data},
                success: function (data){
                    if(!data.status==200){
                        layer.alert(data.message);
                        return;
                    }
                    layer.alert("更改成功");
                    //mccmsa.goTo("check_platform_role");
                }
            })
        })

}